package com.shf.mapper;


import com.shf.entity.OrderTraveller;
import org.apache.ibatis.annotations.*;

/**
 * 中间表关系持久层
 * @author 叶枫
 */
public interface OrderTravellerMapper {

   /**
    * 根据订单id查询游客
    * @param id
    * @return
    */
    OrderTraveller selectByOrderId(String id);

    /**
     * 根据订单号删除与游客的关系
     * @param id
     */
    @Delete("delete  from order_traveller where orderId = #{id}")
    void deleteByOrderId(@Param("id") String id);

    void delByOrderId(@Param("id") String[] ids);
}
